package sqllite;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;



public class TestSqllite {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Class.forName("org.sqlite.JDBC").newInstance();
			Connection conn =DriverManager.getConnection("jdbc:sqlite:E:/core.db"); 
			Statement stat = conn.createStatement();
			ResultSet res= stat.executeQuery("select * from demo");
			while(res.next()){
				System.out.println(res.getString(1));
			}
		} catch (Exception e) {
			e.printStackTrace();
		} 
		

	}

}
